{"ast":null,"code":"var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport DefaultEmptyImg from './empty';\nimport SimpleEmptyImg from './simple';\nimport useStyle from './style';\nconst defaultEmptyImg = /*#__PURE__*/React.createElement(DefaultEmptyImg, null);\nconst simpleEmptyImg = /*#__PURE__*/React.createElement(SimpleEmptyImg, null);\nconst Empty = _a => {\n  var {\n      className,\n      prefixCls: customizePrefixCls,\n      image = defaultEmptyImg,\n      description,\n      children,\n      imageStyle\n    } = _a,\n    restProps = __rest(_a, [\"className\", \"prefixCls\", \"image\", \"description\", \"children\", \"imageStyle\"]);\n  const {\n    getPrefixCls,\n    direction\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('empty', customizePrefixCls);\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  return wrapSSR( /*#__PURE__*/React.createElement(LocaleReceiver, {\n    componentName: \"Empty\"\n  }, locale => {\n    const des = typeof description !== 'undefined' ? description : locale.description;\n    const alt = typeof des === 'string' ? des : 'empty';\n    let imageNode = null;\n    if (typeof image === 'string') {\n      imageNode = /*#__PURE__*/React.createElement(\"img\", {\n        alt: alt,\n        src: image\n      });\n    } else {\n      imageNode = image;\n    }\n    return /*#__PURE__*/React.createElement(\"div\", Object.assign({\n      className: classNames(hashId, prefixCls, {\n        [`${prefixCls}-normal`]: image === simpleEmptyImg,\n        [`${prefixCls}-rtl`]: direction === 'rtl'\n      }, className)\n    }, restProps), /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-image`,\n      style: imageStyle\n    }, imageNode), des && /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-description`\n    }, des), children && /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-footer`\n    }, children));\n  }));\n};\nEmpty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;\nEmpty.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;\nexport default Empty;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","classNames","React","ConfigContext","LocaleReceiver","DefaultEmptyImg","SimpleEmptyImg","useStyle","defaultEmptyImg","createElement","simpleEmptyImg","Empty","_a","className","prefixCls","customizePrefixCls","image","description","children","imageStyle","restProps","getPrefixCls","direction","useContext","wrapSSR","hashId","componentName","locale","des","alt","imageNode","src","assign","style","PRESENTED_IMAGE_DEFAULT","PRESENTED_IMAGE_SIMPLE"],"sources":["/data/messenger.client/node_modules/antd/es/empty/index.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport DefaultEmptyImg from './empty';\nimport SimpleEmptyImg from './simple';\nimport useStyle from './style';\nconst defaultEmptyImg = /*#__PURE__*/React.createElement(DefaultEmptyImg, null);\nconst simpleEmptyImg = /*#__PURE__*/React.createElement(SimpleEmptyImg, null);\nconst Empty = _a => {\n  var {\n      className,\n      prefixCls: customizePrefixCls,\n      image = defaultEmptyImg,\n      description,\n      children,\n      imageStyle\n    } = _a,\n    restProps = __rest(_a, [\"className\", \"prefixCls\", \"image\", \"description\", \"children\", \"imageStyle\"]);\n  const {\n    getPrefixCls,\n    direction\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('empty', customizePrefixCls);\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  return wrapSSR( /*#__PURE__*/React.createElement(LocaleReceiver, {\n    componentName: \"Empty\"\n  }, locale => {\n    const des = typeof description !== 'undefined' ? description : locale.description;\n    const alt = typeof des === 'string' ? des : 'empty';\n    let imageNode = null;\n    if (typeof image === 'string') {\n      imageNode = /*#__PURE__*/React.createElement(\"img\", {\n        alt: alt,\n        src: image\n      });\n    } else {\n      imageNode = image;\n    }\n    return /*#__PURE__*/React.createElement(\"div\", Object.assign({\n      className: classNames(hashId, prefixCls, {\n        [`${prefixCls}-normal`]: image === simpleEmptyImg,\n        [`${prefixCls}-rtl`]: direction === 'rtl'\n      }, className)\n    }, restProps), /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-image`,\n      style: imageStyle\n    }, imageNode), des && /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-description`\n    }, des), children && /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-footer`\n    }, children));\n  }));\n};\nEmpty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;\nEmpty.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;\nexport default Empty;"],"mappings":"AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC,EAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,C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